// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import { Header,Cell,Button,Toast,MessageBox,Loadmore,Lazyload,Search,Swipe, SwipeItem} from 'mint-ui';
import 'mint-ui/lib/style.css'
import {Row,Col,Input} from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import qs from 'qs'
import Layout from './components/Layout'
import router from './router'
import {post,fetch,patch,put,deletes} from './util/http'

Vue.component(Row.name,Row)
Vue.component(Col.name,Col)
Vue.component(Input.name,Input)

Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem)
Vue.component(Header.name, Header);
Vue.component(Button.name, Button)
Vue.component(Cell.name, Cell)
Vue.component(Toast.name, Toast)
Vue.component(MessageBox.name, MessageBox)
Vue.component(Loadmore.name, Loadmore);
Vue.component(Lazyload);
Vue.component(Search.name, Search);

Vue.config.productionTip = false
Vue.prototype.$post = post;
Vue.prototype.$fetch = fetch;
Vue.prototype.$patch = patch;
Vue.prototype.$put = put;
Vue.prototype.$deletes = deletes;
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<Layout/>',
  components: { Layout }
})
